import service from "../utils/request";

export const getFile = (params) => {
    return service({
        url: "document/file",
        method: 'get',
        params: params
    })
}
export const getFileList = (params) => {
    return service({
        url: "document/dir",
        method: 'get',
        params: params
    })
}

export const saveTextFile = (path, content) => {
    return service({
        url: `document/saveText?path=${path}`,
        method: 'post',
        data: content
    })
}

